//
//  Header.h
//  UI27_预编译文件
//
//  Created by JR_Rafael on 16/1/20.
//  Copyright © 2016年 lanou3g. All rights reserved.
//

#ifndef Header_h
#define Header_h

#if DEBUG

#define NSLog(FORMAT, ...) fprintf(stderr, "[%s:%d行] %s\n",[[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);

#else

#define NSLog(FORMAT, ...) nil

#endif


#define iPhone6 ([UIScreen mainScreen].bounds.size.height == 667) ? YES : NO


//如果是 DEBUG 模式用测试服务器地址
#if DEBUG

#define     HttpBaseURL        @"http://www.test.com/" // 测试服务器

#else

#define     HttpBaseURL        @"http://www.baidu.com/" // 正式服务器

#endif


#define     iOS8     ([[[UIDevice currentDevice] systemVersion] floatValue] == 8.0) ? YES : NO


#define SDWEBIMAGE(A) sd_setImageWithURL:[NSURL URLWithString:A]

#define RGBA(R/*红*/, G/*绿*/, B/*蓝*/, A/*透明*/) \
[UIColor colorWithRed:R/255.f green:G/255.f blue:B/255.f alpha:A]

#define HEIGHT self.view.frame.size.height
#define WIDTH self.view.frame.size.width

#define wt [UIScreen mainScreen].bounds.size.width / 375
#define ht [UIScreen mainScreen].bounds.size.height / 667
#define PLACE_HLODER @"pl.jpg"
#define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width
#define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height
#endif /* Header_h */
